{% extends "./inc_base.html" %}
{%block style%}
<style>
    .price {
        color: #e4393c;
        font-size: 16px;
    }

</style>
{%endblock%}
{% block content %}

<div class="mui-content">
    <div class="mui-content-padded text-center " >
        <a class="mui-icon iconfont icon-roundcheck size-60 "></a>
    </div>
        <div class="mui-card">
            <ul class="mui-table-view ">
                <li class="mui-table-view-cell text-center mui-badge-primary">
                    {% if order.pay_status == 0%}支付中…… {%else%}支付成功{%endif%}
                </li>
                <li class="mui-table-view-divider">支付信息</li>
                <li class="mui-table-view-cell">订单编号:{{order.order_no}}</li>
                <li class="mui-table-view-cell"> 订单金额：<span class="price">￥{{order.order_amount|formatCurrency}}</span></li>
            </ul>
        </div>
        <div class="mui-content-padded" style="margin-top: 20px; margin-bottom: 50px">
            <a href="#" class="mui-btn mui-btn-primary mui-btn-block mui-btn-outlined" id="return">返回游戏</a>
        </div>

</div>

{% endblock%}

{% block script %}
<script>

$("#return").on("tap",function () {
	window.location.href = "leyinggame://leyinggame";
	
	setTimeout(function(){
		var userAgent = navigator.userAgent; 
		if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { 
		   window.location.href="about:blank"; 
		}else if(userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1){ 
			window.opener=null;
			window.open('about:blank','_self','').close();
		}else { 
		   window.opener = null; 
		   window.open('','_self');
		   window.close(); 
		}  
    },1500);
	

})


</script>
{% endblock %}
